package router

import (
	"github.com/gin-gonic/gin"
	"order_bff/api/alipay"
)

func InitAlipayRouter(router *gin.Engine) {
	AlipayRouter := router.Group("o/v1/alipay")
	{
		//AlipayRouter.POST("", middlerware.CheckToken(), alipay.GenerateAlipayUrl)
		//获取支付连接
		AlipayRouter.POST("", alipay.GenerateAlipayUrl)
		AlipayRouter.GET("return", alipay.ReturnUrl)
		AlipayRouter.Any("notify", alipay.NotifyUrl)
	}
}
